home *** CD-ROM | disk | FTP | other *** search
- on showrightpath
- global donelist, nextchan, lastClick, hordlink, TRIAL, nextclick
- storepath()
- set stunk to 2
- if count(donelist) > 1 then
- repeat with yyy = count(donelist) down to 1
- if yyy < 11 then
- puppetSound("untitled-" & yyy)
- else
- puppetSound("untitled-10")
- end if
- if getAt(donelist, yyy) > 11 then
- if getAt(donelist, yyy) > 1 then
- set the ink of sprite getAt(donelist, yyy) to 36
- end if
- updateStage()
- mydelay(15)
- next repeat
- end if
- set stunk to yyy + 2
- exit repeat
- end repeat
- else
- put "ooogah!"
- set stunk to count(donelist) + 2
- end if
- set endhint to ((TRIAL - 2) * 2) + stunk
- if endhint > 11 then
- set endhint to 11
- end if
- if stunk < 2 then
- set stunk to 2
- end if
- repeat with xxx = stunk to endhint
- if xxx < 11 then
- puppetSound("untitled-" & xxx)
- else
- puppetSound("untitled-10")
- end if
- set the ink of sprite xxx to 5
- updateStage()
- mydelay(15)
- end repeat
- startTimer()
- repeat while the timer < 60
- updateStage()
- end repeat
- restorepath()
- set newlist to []
- repeat with xxx = 1 to count(donelist)
- if getAt(donelist, xxx) < 12 then
- add(newlist, xxx + 1)
- set the ink of sprite (xxx + 1) to 4
- next repeat
- end if
- repeat with yyy = xxx to count(donelist)
- set the ink of sprite getAt(donelist, yyy) to 36
- end repeat
- set nextchan to getAt(hordlink, xxx - 1)
- set lastClick to xxx
- set donelist to newlist
- exit repeat
- end repeat
- set nextclick to count(donelist) + 1
- updateStage()
- end
-
- on storepath
- global apathy
- set apathy to []
- repeat with xxx = 2 to 24
- add(apathy, the ink of sprite xxx)
- end repeat
- end
-
- on restorepath
- global apathy
- repeat with xxx = 2 to 24
- set the ink of sprite xxx to getAt(apathy, xxx - 1)
- end repeat
- end
-